﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: StockEntity.cs
// 修改时间：2020-9-8 10:40:11
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Stock 的实体类.
	/// </summary>
	[Table("Stock")]
	public partial class StockEntity
	{
		#region Properties
		private int? _stockID = 0;
		/// <summary>
		/// ID(主键)
		/// </summary>
		[Column("StockID",TypeName="int")]
		[Key]
		public int? StockID
		{
			get {return _stockID;}
			set {_stockID = value;}
		}
		
		private System.String _stockNum = string.Empty;
		/// <summary>
		/// 库单编号
		/// </summary>
		[Column("StockNum",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String StockNum
		{
			get {return _stockNum;}
			set {_stockNum = value;}
		}
		
		private DateTime? _inputTime = null;
		/// <summary>
		/// 录入时间
		/// </summary>
		[Column("InputTime",TypeName="datetime")]
		public DateTime? InputTime
		{
			get {return _inputTime;}
			set {_inputTime = value;}
		}
		
		private System.String _inputer = string.Empty;
		/// <summary>
		/// 录入者
		/// </summary>
		[Column("Inputer",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Inputer
		{
			get {return _inputer;}
			set {_inputer = value;}
		}
		
		private int? _stockType = 0;
		/// <summary>
		/// 库单类型
		/// </summary>
		[Column("StockType",TypeName="int")]
		public int? StockType
		{
			get {return _stockType;}
			set {_stockType = value;}
		}
		
		private System.String _remark = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		[Column("Remark",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark
		{
			get {return _remark;}
			set {_remark = value;}
		}
		
		#endregion
	}
}
